home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / LANG / C / LIB / UNIXLIB37B / !UnixLib37 / src / clib / sys / h / times < prev    next >
Text File  |  1996-11-09  |  1KB  |  50 lines

  1. /****************************************************************************
  2.  *
  3.  * $Source: /unixb/home/unixlib/source/unixlib37/src/clib/sys/h/RCS/times,v $
  4.  * $Date: 1996/10/30 22:04:51 $
  5.  * $Revision: 1.2 $
  6.  * $State: Rel $
  7.  * $Author: unixlib $
  8.  *
  9.  * $Log: times,v $
  10.  * Revision 1.2  1996/10/30 22:04:51  unixlib
  11.  * Massive changes made by Nick Burret and Peter Burwood.
  12.  *
  13.  * Revision 1.1  1996/04/19 21:23:56  simon
  14.  * Initial revision
  15.  *
  16.  ***************************************************************************/
  17.  
  18. /* POSIX Standard 4.5.2: Process Times <sys/times.h>.  */
  19.  
  20. #ifndef __SYS_TIMES_H
  21. #define __SYS_TIMES_H
  22.  
  23. #ifndef __TIME_H
  24. #include <time.h>
  25. #endif
  26.  
  27. #define HZ      100
  28.  
  29. /* Structure describing CPU time used by a process and its children.  */
  30.  
  31. struct tms
  32. {
  33.   clock_t tms_utime;        /* user time */
  34.   clock_t tms_stime;        /* system time */
  35.   clock_t tms_cutime;       /* user time of dead children */
  36.   clock_t tms_cstime;       /* system time of dead children */
  37. };
  38.  
  39. /* Store the CPU time used by this process and all its dead children
  40.    in buffer.  */
  41. #ifdef __cplusplus
  42. extern "C" {
  43. #endif
  44. clock_t times (struct tms *tmsp);
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48.  
  49. #endif
  50.